package co.yixiang.retail.biz;

import co.yixiang.common.core.utils.SpringContextHolder;
import co.yixiang.common.security.annotation.EnableCustomConfig;
import co.yixiang.common.security.annotation.EnableYxFeignClients;
import co.yixiang.common.security.annotation.EnableYxResourceServer;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.context.annotation.Bean;

/**
 * 后台管理模块
 *
 * @author yshop
 */
@EnableCustomConfig
@EnableYxFeignClients
@SpringCloudApplication
@EnableYxResourceServer
public class YshopRetailApplication {
    public static void main(String[] args) {
        SpringApplication.run(YshopRetailApplication.class,args);
    }

    @Bean
    public SpringContextHolder springContextHolder() {
        return new SpringContextHolder();
    }
}
